FROM httpd:latest
COPY httpd-foreground /usr/local/bin/
COPY httpd.conf /usr/local/apache2/conf/
COPY plugin/WLSPlugin14.1.1.0.0-Apache2.4-Linux_x86_64.zip /tmp/
COPY apt-install.sh /usr/local/apache2/
COPY openssl/openssl-1.1.1w.tar.gz /usr/local/apache2/
RUN chmod +x /usr/local/apache2/apt-install.sh && \
    chmod +x /usr/local/bin/httpd-foreground && \
    /usr/local/apache2/apt-install.sh
RUN apt install curl -y
WORKDIR /usr/local/bin
CMD ["httpd-foreground"]
